<div id="view-content">
	<table>
            <tr><td>Project</td><td>Startdate</td><td>Enddate</td><td>Action</td><td></td></tr>
    <?php foreach ($this->entries as $entry): ?>
            <tr><td><?php echo $entry->Name?></td><td><?php echo $entry->Starttime?></td><td><?php echo $entry->Endtime?></td><td>
                    <a href="<?php echo $this->url(array(
        'controller' => 'project',
        'action'     => 'details',
        'projectid'    => $entry->Id,
        
    ),
    'default',
    true) ?>" class="button">Details</a><?php echo $this->ajaxLink("Delete", $this->url(array('controller' => 'project',
        'action'     => 'deleteproject',
        'projectid' => $entry->id,
        
    ),
    'default',
    true),
                    array('update' => "#answer$entry->id", 'class'=>'button'));?></td><td><span id="answer<?php echo $entry->id ?>"></span></td></tr>
            
    <?php endforeach ?>
        </table>
    <hr>
    
    <a href="<?php echo $this->url(array('controller' => 'project',
        'action'     => 'add',        
    )); ?>" class="button">Add project</a>
</div>